﻿using Castle.MicroKernel.Registration;
using Castle.Windsor;
using NUnit.Framework;

namespace WindsorInitConfig {
    [TestFixture]
    public class BadTypeArity {
        [Test]
        public void tt() {
            var container = new WindsorContainer();
            container.Register(Component.For(typeof(IValidator<>)).ImplementedBy(typeof (A<>.B<>)));
            container.Resolve<IValidator<string>>();
        }

        public class A<T> {
            public class B<U>: IValidator<U> {}
        }

        public interface IValidator<T> {}
    }
}